<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>
<body>
    <div id="app">
        <div @click="divClick">
            <button @click.stop="btnClick">按钮</button>
        </div>
        <form action="baidu">
            <input type="submit" value="提交" @click.prevent="submit">
        </form>
        <input type="text" @keyip.enter="keyup">
    </div>
    <script>
        const app=new Vue({
            el:'#app',
            data:{},
            methods:{
                divClick(){
                    console.log("div")
                },
                btnClick(){
                    console.log("btn")
                },
                submit(){
                    console.log("提交")
                },
                keyup(){
                    console.log("keyup")
                },
            }
        });
    </script>
</body>
</html>